<?php
class Shipping extends AppModel {
	var $name = 'Shipping';
	var $displayField = 'shipping_method';
	var $validate = array(
		
		'shipping_method' => array(
			'notempty' => array(
				'rule' => array('notempty'),
				'message' => 'Enter shipping method',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			),
		),'shipping_cost' => array(
			'decimal' => array(
				'rule' => array('decimal'),
				'message' => 'Enter Shipping cost ex.:x.00',
				//'allowEmpty' => false,
				//'required' => false,
				//'last' => false, // Stop validation after this rule
				//'on' => 'create', // Limit validation to 'create' or 'update' operations
			)
		)
		
	);
	//The Associations below have been created with all possible keys, those that are not needed can be removed

	/*var $belongsTo = array(
		'ProductShipping' => array(
			'className' => 'ProductShipping',
			'foreignKey' => 'shipping_id',
			'conditions' => '',
			'fields' => '',
			'order' => ''
		)
	);*/
}
?>